package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.es.SkuEsmodel;
import lombok.Data;

import javax.lang.model.type.IntersectionType;
import java.util.List;

/**
 * @program: gulimall
 * @description: 搜索服务
 * @author: liuxvru
 * @create: 2024-03-12 21:53
 **/
@Data
public class SearchResult {
    private List<SkuEsmodel> product; //商品
    private Integer pageNum;//页码
    private Long total;//总记录数
    private Integer totalPages;//总页码
    private List<BrandVo> brands;//品牌
    private List<AttrVo> attrs;//商品属性
    private List<CatalogVo> catalogVos;//商品分类
    private List<Integer> pageNavs;//遍历页码
    private List<NavVo> navs;//遍历页码
    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;
    }

    @Data
    public static class BrandVo {
        private Long BrandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class AttrVo {
        private Long AttrId;
        private String AttrName;
        private List<String> attrValue;
    }
    @Data
    public static class CatalogVo {
        private Long CatalogId;
        private String CatalogName;
    }

}
